#ifndef UTILS_HPP
#define UTILS_HPP

#include <QCoreApplication>
#include <QFont>
#include <QFontDatabase>



QFont load_font(QString name){
//    int fontId = QFontDatabase::addApplicationFont(QCoreApplication::applicationDirPath() + "/" + name);
    int fontId = QFontDatabase::addApplicationFont(name);
    QString msyh = QFontDatabase::applicationFontFamilies(fontId).at(0);
    return QFont(msyh);
}

#endif // UTILS_HPP
